#include <stdio.h>
#include <stdbool.h>

bool isPalindrome(int x)
{
    int a = 0;
    int b = x;
    
    while(x > 0)
    {
        a = a * 10 + x % 10;
        x /= 10;
    }
    if(b == a)
    {
        return true;
    }
    else
        return false;
}

int main()
{
    int x = 12344321;
    if(isPalindrome(x))
        printf("true\n");
    else
        printf("false\n");

    return 0;
}